function initialPageForLoad(url, callback) {
	$.post(url, function(data) {
		if (data.message == "success") {
				callback(data.data);
		}
	});
}

function initialPageForLoadWithParams(urls, paramsArr, callback) {
	var flag = 0;
	if (urls.length == paramsArr.length) {
		var results = new Array();
		for ( var index in urls) {
			$.post(urls[index], paramsArr[index], function(data) {
				if (data.message == "success") {
					++flag;
					results.push(data.data);
					if (flag == urls.length) {
						callback(results);
					}
				}
			});
		}
	}
}
